package com.copa.module.user.mapper;

import com.copa.module.user.domain.entity.RoleEntity;
import com.copa.module.user.domain.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-13
 * @function t_role表 Mapper 接口
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity> {

    List<Long> listRoleByUserIdAndRoleId(@Param("userId") Long userId, @Param("roleId") Long roleId);

    Boolean insertUserRole(@Param("user") UserEntity user);
}
